import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home/Home.vue'
const Hesuan = () =>
    import ('../views/Hesuan/index.vue')
const Area = () =>
    import ('../views/Area/index.vue')
const Prevention = () =>
    import ('../views/Prevention/index.vue')
const Citys = () =>
    import ('../views/Citys/Citys.vue')
const Travel = () =>
    import ('../views/Travel/Travel.vue')
const SelectCity = () =>
    import ('../views/SelectCity/SelectCity.vue')
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Home',
            component: Home
        },
        {
            path: '/hesuan',
            name: 'Hesuan',
            component: Hesuan
        },
        {
            path: '/area',
            name: 'Area',
            component: Area
        },
        {
            path: '/prevention',
            name: 'Prevention',
            component: Prevention
        },
        {
            path: '/citys/:cityname',
            name: 'Citys',
            component: Citys,
            props: true,
        },
        {
            path: '/travel',
            name: 'Travel',
            component: Travel,
        },
        {
            path: '/selectCity',
            name: 'SelectCity',
            component: SelectCity,
        }
    ]
})